from multiprocessing import Process

from tracing import state_tracing, result_tracing


def run_state_tracing():
    st = state_tracing.StateTracing()
    st.init_rabbitmq()
    st.run_tracing()


def run_result_tracing():
    rt = result_tracing.ResultTracing()
    rt.init_rabbitmq()
    rt.run_tracing()


if __name__ == "__main__":
    rt_process = Process(target=run_result_tracing)
    rt_process.start()
    # rt_process.join()

    run_state_tracing()